package com.tao.springbootstart.controller;


import com.tao.springbootstart.service.RobotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class RobotController {

    @Autowired
    RobotService robotService;

    @Autowired
    AController aController;

    @GetMapping("/robot")
    @ResponseBody
    public String robot(){
        aController.hi();

        return robotService.sayHello();
    }
}
